package cn.yzfy.common.model.vo;

import cn.yzfy.common.base.vo.BaseIdAndTimeVO;
import cn.yzfy.common.enums.GenderEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 一朝风月
 * @date 2025/9/11 18:32
 * @Code 面向注解面向卿，终无解释再无你
 * @description
 */

@Schema(description = "认证用户信息")
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AuthenticationUserDetailVO extends BaseIdAndTimeVO {

    @Serial
    private static final long serialVersionUID = -4747392397333509473L;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String username;

    /**
     * 账号
     */
    @Schema(description = "账号")
    private String account;

    /**
     * 性别
     */
    @Schema(description = "性别")
    private GenderEnum gender;

    /**
     * 手机号
     */
    @Schema(description = "手机号")
    private String phone;

    /**
     * 头像url
     */
    @Schema(description = "头像url")
    private String avatarUrl;

    /**
     * 备注信息
     */
    @Schema(description = "头像url")
    private String remark;

    /**
     * 最后登录时间
     */
    @Schema(description = "最后登录时间")
    private LocalDateTime lastLoginTime;

    /**
     * 角色列表
     */
    @Schema(description = "角色列表")
    private List<RoleVO> roles = new ArrayList<>();

    /**
     * 权限列表
     */
    @Schema(description = "权限列表")
    private List<ResourcesVO> permissions = new ArrayList<>();
}